﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace N03_11HCA_HTTTHD.Models
{
    public class ChaoBan_Them_DichVu
    {
        public static String Name_tenViet = "tenViet";
        public static String Name_tenAnh = "tenAnh";
        public static String Name_sllXuatXu = "sllXuatXu";
        public static String Name_txtMoTa = "txtMoTa";
        public static String Name_txtUuDiem = "txtUuDiem";
        public static String Name_fileHinhAnhDinhKem = "fileHinhAnhDinhKem";
        public static String Name_fileDinhKem = "fileDinhKem";
        public static String Name_txtDoiTuongSuDung = "txtDoiTuongSuDung";
      //  public static String Name_patent = "patent";
        //public static String Name_biQuyet = "biQuyet";
        //public static String Name_license = "license";
        //public static String Name_daoTao = "daoTao";
        //public static String Name_tuVanDaoTao = "tuVanDaoTao";
        //public static String Name_chiaKhoaTraoTay = "chiaKhoaTraoTay";
        //public static String Name_theoThoaThuanCuaKhachHang = "theoThoaThuanCuaKhachHang";
       // public static String Name_trucTiepTheoDDH = "trucTiepTheoDDH";
        //public static String Name_theoDDH = "theoDDH";
        //public static String Name_quaTongDaiLy = "quaTongDaiLy";
        //public static String Name_daiLyDocQuyen = "daiLyDocQuyen";
        //public static String Name_daiLyBanLe = "daiLyBanLe";
        //public static String Name_quaTiepThiChinh = "quaTiepThiChinh";
        public static String Name_cungCap = "cungCap";
        public static String Name_giaKhoiDiem = "giaKhoiDiem";
        public static String Name_giaKetThuc = "giaKetThuc";
        public static String Name_donviTinh = "donviTinh";
        public static String Name_donviTienTe = "donviTienTe";
        public static String Name_txtDieuKienKhac = "txtDieuKienKhac";
        public static String Name_chiPhiKhac = "chiPhiKhac";
        public static String Name_baoHanh = "baoHanh";
        public static String Name_chuyenGiaoCho = "chuyenGiaoCho";
        public static String Name_donViDaChuyenGiao = "donViDaChuyenGiao";
        public static String Name_slPhanLoai = "slPhanLoai";
        public static String Name_slLinhVuc = "slLinhVuc";
        public static String Name_txttuKhoa = "txttuKhoa";
        public static String Name_btnSubmit = "btnSubmit";
        public static String Name_btnHuy = "btnHuy";
        public static String Name_chuyenGiao = "chuyenGiao";
       
        //-------------------------
        public ChaoBan_Them_DichVu(List<Data_DAO_DTO_Lib.DTO.DTO> listPhanLoai, List<Data_DAO_DTO_Lib.DTO.DTO> listLinhVuc, List<Data_DAO_DTO_Lib.DTO.DTO> listChuyenGiao, List<Data_DAO_DTO_Lib.DTO.DTO> listCungCap)
        {
            setListPhanLoaiTuDTO(listPhanLoai);
            setListLinhVucTuDTO(listLinhVuc);
            setListChuyenGiaoTuDTO(listChuyenGiao);
            setListCungCapTuDTO(listCungCap);
        }
        //----------------------

        //lay danh sach phan loai
        private List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> listPhanLoai  = new List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO>();
        public List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> ListPhanLoai
        {
            get
            {
                return listPhanLoai;
            }
            set
            {
                listPhanLoai = value;
            }
        }

        void setListPhanLoaiTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listPhanLoai = new List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listPhanLoai.Add((Data_DAO_DTO_Lib.DTO.DANHMUC_DTO)l[i]);
            }
        }

       
        //lay danh sach dich vu
        private List<Data_DAO_DTO_Lib.DTO.LINHVUC_DTO> listLinhVuc = new List<Data_DAO_DTO_Lib.DTO.LINHVUC_DTO>();
        public List<Data_DAO_DTO_Lib.DTO.LINHVUC_DTO> ListLinhVuc
        {
            get
            {
                return listLinhVuc;
            }
            set
            {
                listLinhVuc = value;
            }
        }

        void setListLinhVucTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listLinhVuc = new List<Data_DAO_DTO_Lib.DTO.LINHVUC_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listLinhVuc.Add((Data_DAO_DTO_Lib.DTO.LINHVUC_DTO)l[i]);
            }
        }

        //lay danh sach chuyen chuyen giao
        private List<Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO> listChuyenGiao = new List<Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO>();
        public List<Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO> ListChuyenGiao
        {
            get
            {
                return listChuyenGiao;
            }
            set
            {
                listChuyenGiao = value;
            }
        }

        void setListChuyenGiaoTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listChuyenGiao = new List<Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listChuyenGiao.Add((Data_DAO_DTO_Lib.DTO.CHUYENGIAO_DTO)l[i]);
            }
        }

        //lay danh sach cung cap
        private List<Data_DAO_DTO_Lib.DTO.CUNGCAP_DTO> listCungCap = new List<Data_DAO_DTO_Lib.DTO.CUNGCAP_DTO>();
        public List<Data_DAO_DTO_Lib.DTO.CUNGCAP_DTO> ListCungCap
        {
            get
            {
                return listCungCap;
            }
            set
            {
                listCungCap = value;
            }
        }

        void setListCungCapTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listCungCap = new List<Data_DAO_DTO_Lib.DTO.CUNGCAP_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listCungCap.Add((Data_DAO_DTO_Lib.DTO.CUNGCAP_DTO)l[i]);
            }
        }
    }
}